public class Test_do_while {

    public static void main(String[] args) {
        /*
          do{
            语句块
          }while(条件表达式)
         */
        //1+2+3+....100
        int i=1;
        int sum=0;
        do{
           sum+=i;
           i++;
        }while(i<=100);
        System.out.println("sum="+sum);

    }
}
